#!/usr/bin/env python
###########################################################################
# Surf report web scraping app, to send SMS messages when the surf is good
# 02/2010 RMP, original idea and BASH implementation by AJP
###########################################################################
import string

import BeachData
import ForecastCollective
import Reports

####################
# EDITABLE VARIABLES
####################
beachNumberList = ["967","11","1","126","61"]
#beachNumberList = ["1"]
starMinLimit = 3 # (inclusive) limit at which report is made
################################
# DO NOT EDIT BELOW THIS POINT #
################################
####################### MAIN () ##############################
newBeachObjCollective = ForecastCollective.ForecastCollective()
oldBeachObjCollective = ForecastCollective.ForecastCollective()
newBeachObjCollective.makeBeachObjsFromWeb(beachNumberList)
oldBeachObjCollective.makeBeachObjsFromFile(beachNumberList)

emailReport = Reports.EmailReport()
smsReport = Reports.SmsReport()
(emailReport, smsReport) = compareCollectives(oldBeachObjCollective, newBeachObjCollective)
#print emailReport.reportStr
emailReport.sendEmailReport('SENDTO@domain.com')
#smsReport.sendSmsReport('+0000000000')
newBeachObjCollective.storeAllToFile()
